package test.cn.qlin.orm.bean;

import cn.qlin.mvc.orm.annotation.Bean;
import cn.qlin.mvc.orm.annotation.Table;
import cn.qlin.mvc.orm.annotation.Id;
import cn.qlin.mvc.orm.annotation.TableCol;

@Bean
@Table("url")
public class Url {
	@Id(name="id",tactics="auto")
	private int id;
	@TableCol("name")
	private String name;		//链接名
	@TableCol("title")
	private String title;		//锚文本
	@TableCol("url")
	private String url;			//链接
	@TableCol("targetid")
	private int targetid;		//目标id
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public int getTargetid() {
		return targetid;
	}
	public void setTargetid(int targetid) {
		this.targetid = targetid;
	}
	@Override
	public String toString() {
		return "Url [id=" + id + ", name=" + name + ", title=" + title
				+ ", url=" + url + ", targetid=" + targetid + "]";
	}
	
}
